package event

import "gitee.com/copperxcx/res"

type Processor interface {
	Process(e *Event)
}
type PluginContext struct {
	ResManager  *res.ResManager
	ProcManager Processor
	Bus         EventPoster
}

type EventPoster interface { // <- 新增
	Post(e *Event) error
	PostSync(e *Event) error
}

func NewPluginContext() *PluginContext {
	return &PluginContext{
		ResManager: res.NewResManager(),
	}
}
